package com.lhy.wcss.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping("/console")
    public String console(){
        return "views/home/console";
    }
    @RequestMapping("/")
    public String index(){
        return "login";
    }
    /*首页*/
    @RequestMapping("/index")
    public String login(){
        return "index";
    }
    @RequestMapping("/auto")
    public String auto(){
        return "views/component/table/auto";
    }
    @RequestMapping("/upload/demo1")
    public String upload(){
        return "views/component/upload/demo1";
    }

    /*跳转到whitelist页面*/
    @GetMapping("/allUser")
    public String allUser(){
        return "page/user/whitelist";
    }

    /*跳转到批次添加页面*/
    @GetMapping("/batch-add")
    public String batchAdd(){
        return "page/batch/addBatch";
    }

    /*跳转到批次列表页面*/
    @GetMapping("/batch-list")
    public String batchList(){
        return "page/batch/batchList";
    }
    /*跳转寒衣添加页面*/
    @GetMapping("/product-add")
    public String productAdd(){
        return "page/products/productsAdd";
    }

    /*跳转到待我审核页面*/
    @GetMapping("/appwait")
    public String appWait(){
        return "page/application/waitList";
    }

    /*数据可视化
    * 学生统计*/
    @GetMapping("/stu")
    public String stu(){
        return "page/stat/stuData";
    }
    @GetMapping("/status")
    public String status(){
        return "page/stat/status";
    }
    @RequestMapping("userList")
    public String userList(){
        return "page/user/whitelist";
    }
    @RequestMapping("sqList")
    public String sqList(){
        return "page/application/sqList";
    }
    @RequestMapping("userStat")
    public String userStat(){
        return "page/stat/stuData";
    }

    @RequestMapping("batchSetting")
    public String batchSetting(){
        return "page/batch/batchList";
    }

    @RequestMapping("userAppList")
    public String userAppList(){
        return "page/user/applist";
    }

    //寒衣申请
    @RequestMapping("apply")
    public String myAdmin(){
        return "page/application/apply";
    }

}
